#include "ObjectId.h"

unsigned int ObjectId::s_nextValue = 1;

ObjectId::ObjectId()
{
    m_value = s_nextValue++;
}

QDataStream & operator <<(QDataStream &out, const ObjectId &id)
{
    out << id.value();
    return out;
}

QDataStream & operator >>(QDataStream &in, ObjectId &id)
{
    unsigned int value;
    in >> value;
    id.setValue(value);
    return in;
}
